# -*- coding: utf-8 -*-
# @Time    : 2022/3/29 16:40
# @Author  : zyw
# @Email   : panda_kings@163.com
# @File    : urls.py
from django.urls import path
from . import views


urlpatterns = [
    # 校验用户名是否重复
    path('check/username/<str:name>/', views.CheckUsername.as_view()),
    # 校验手机号是否重复
    path('check/mobile/<str:mobile>/', views.CheckMobile.as_view()),
    # 注册
    path('register/', views.UserRegister.as_view()),
    # 生成验证码
    path('image_code/<str:img_id>/',views.GenerateImageCode.as_view()),
    # 校验图片验证码
    path('check_image_code/',views.CheckImageCode.as_view()),
    # 登录
    path('login/',views.Login.as_view()),
    # 退出登录
    path('logout/',views.Logout.as_view())


]